package com.aspose.cells;

public class Format3D {
   private ShapePropertyCollection a;

   Format3D(ShapePropertyCollection spPr) {
      this.a = spPr;
   }

   private void a() {
      if (this.a.d() == null) {
         zbcc var1 = this.a.e();
         var1.a().a(46);
         var1.b().a(25);
         var1.b().b(5);
      }

   }

   public Bevel getTopBevel() {
      this.a();
      return this.a.c().d();
   }

   public boolean hasTopBevelData() {
      return this.a.b() != null && this.a.b().c() != null && this.a.b().c().getType() != 0;
   }

   public int getSurfaceMaterialType() {
      this.a();
      return this.a.c().e();
   }

   public void setSurfaceMaterialType(int value) {
      this.a();
      this.a.c().a(value);
   }

   public int getSurfaceLightingType() {
      this.a();
      return this.a.e().b().b();
   }

   public void setSurfaceLightingType(int value) {
      this.a();
      this.a.e().b().a(value);
   }

   public double getLightingAngle() {
      this.a();
      return com.aspose.cells.b.a.zq.b((double)this.a.e().b().a().c / (double)zml.j, 1);
   }

   public void setLightingAngle(double value) {
      this.a();
      if (value >= 0.0D && value <= 359.9D) {
         this.a.e().b().a().c = (int)(value * (double)zml.j);
      } else {
         throw new CellsException(6, "LightingAngle must between 0 and 359.9");
      }
   }
}
